﻿<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Employee extends CI_Controller {
	public function __construct(){
		parent::__construct();
		$this->load->model('all_model');
	}
	public function addEmployee($name,$address,$email,$company){
		
	}
	public function imageEmployee(){
		$this->load->library('upload');
		$config = array(
			'upload_path'=> './uploads',
			'allowed_types'=>'png|jpg|gif',
		);
		$this->upload->initialize($config);
		if($this->upload->do_upload()){
			$data = array('uploadData'=>$this->upload->data());
			$this->load->view('uploadSuccess',$data);
		}else{
			$data = array('uploadData'=>$this->upload->display_errors());
			$this->load->view('uploadSuccess',$data);
		}
	}
}

/* End of file employee.php */
/* Location: ./application/controllers/employee.php */